{{useCss "/app-pages/css/user.scss","/user/:user_page?"}}
<div class="user_top">
    <div class="context">
        <div class="user-img">
            <img src="{{loginer.info.header_url||'/images/anonymous.jpg'}}" />
        </div>

        <div class="content">
            <div class="content-item">
                <span class="real-name">{{loginer.info.real_name}}</span>(
                <span class="login-name">{{loginer.info.name}}</span>)</div>
            <div class="content-item">
                <span class="phone">{{loginer.info.mobile_phone}}</span>
            </div>
            <div class="content-item">
                <span class="mail">{{loginer.info.email}}</span>
            </div>
        </div>
    </div>
</div>

<div class="user_main">
    <div class="list-button">
        <!-- 按钮 -->
        <href to="/user/order.html">
            <paperButton class="li" color="red">订单管理</paperButton>
        </href>
        <href to="/user/comments.html">
            <paperButton class="li">评价管理</paperButton>
        </href>
        <href to="/user/collection.html">
            <paperButton class="li">我的收藏</paperButton>
        </href>
        <href to="/user/info.html">
            <paperButton class="li">个人信息</paperButton>
        </href>
        <href to="/user/address.html">
            <paperButton class="li">收货地址</paperButton>
        </href>
        <href to="/user/buff.html">
            <paperButton class="li">推荐返利</paperButton>
        </href>
        <href to="/user/invite.html">
            <paperButton class="li">邀请注册</paperButton>
        </href>
    </div>


    <div class="right">
        {{#teleporter "user"}}

    </div>
</div>


<script type="text/vm">
function(vm) {
    Path.registerjSouperRoute("/user/:user_page?", function(loc) {
        var _emit_lock = true;
        var user_page = this.params.user_page;
        console.log(user_page);
        return ({
            href: loc.href,
            html: "/app-pages/pages/user/",
            js: "/app-pages/js/user/",
            css: "/app-pages/css/user/",
            prefix: "/user/", //URL-pathname中无用的前缀部分，用来过滤href得出pagename
            tel: "user",
            default: "order",
            pagename_handler: function(pagename) { //过滤出来的pagename在这里处理·二次处理pagename
                //过滤掉后缀
                return jSouper.$.lst(pagename, ".") || pagename;
            },
            index: 1,
            vm: vm
        });
    });
}
</script>